package org.scau.studentevaluation.mapper;

import org.apache.ibatis.annotations.Select;
import org.scau.studentevaluation.entity.dos.ExamAct;
import org.scau.studentevaluation.entity.dos.ExamDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author x1aolone
 * @since 2020-08-24
 */
public interface ExamMapper extends BaseMapper<ExamDO> {
    @Select("select * from exam where relu_year=#{reluYear} and act_id=#{actId}")
    public ExamAct getExamActById(Integer reluYear, Long actId);
    @Select("select * from exam where relu_year=#{reluYear} and oac_id=#{oacId}")
    public ExamAct getExamActByOId(Integer reluYear,Long oacId);
}
